package com.jxdinfo.hussar.example.common.schedulingtask.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jxdinfo.hussar.example.common.schedulingtask.model.CBOItemMasterInventoryInfo;
import com.jxdinfo.hussar.example.common.schedulingtask.model.MdClient;
import com.jxdinfo.hussar.example.common.schedulingtask.vo.MdClientVO;
import com.jxdinfo.hussar.support.datasource.annotations.HussarDs;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 客户表 Mapper 接口
 * </p>
 *
 * @author 乔镔
 * @since 2024-04-03
 */
@Mapper
@Repository("com.jxdinfo.hussar.example.common.schedulingtask.dao.MdClientMapper")
public interface MdClientMapper extends BaseMapper<MdClient> {

    LocalDateTime selectMaxScheduleDate();

    @HussarDs("U9C")
    List<MdClientVO> selectMoreSchedule(String scheduleDateString);

    @HussarDs("U9C")
    List<MdClientVO> selectUpdateMoreSchedule(String scheduleDateString);

    @HussarDs("U9C")
    List<MdClientVO> selectAllClient();

    void updateIsDeleteById(ArrayList<Long> erpNoMesHasIdList);
}
